/**
 *  设备相关接口
 * **/

import request from '@/common/request.js'
import {HTTP_REQUEST_URL,http_request_url_java} from '@/config.js' 

const pro_api={}

// 获取专业项目
pro_api.projects = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/project/projects',   
	data: data   
})  

// 获取项目详情
pro_api.getProject = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/project/project',   
	data: data   
})  

// 获取监测概况数据
pro_api.getPcinfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pcpro/pcinfo',   
	data: data   
})


// 添加用户监测作业数据
pro_api.addPcdata = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pcpro/addpcdata',   
	data: data   
})

// 添加公共监测作业数据
pro_api.addCommonProdata = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/addpcdata',   
	data: data   
})

// 添加监测作业项目作业点
pro_api.addProjectLocus = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/project/locus',   
	data: data   
})

// 添加监测作业公共作业点
pro_api.addCommonLocus = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/locus',   
	data: data   
})

// 监测蚁巢定位
pro_api.pcnestUpdateGps = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pcpro/update-gps',   
	data: data   
})

// 监理蚁巢定位
pro_api.jlnestUpdateGps = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/update-gps',   
	data: data   
})

// 公共项目蚁巢定位
pro_api.commonnestUpdateGps = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/update-gps',   
	data: data   
})



// 添加监测作业项目城市编码
pro_api.addPcproAdcode = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pcpro/adcode',   
	data: data    
})

// 添加监测作业项目城市编码
pro_api.addCommonproAdcode = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/adcode',   
	data: data    
})



// 添加监测作业项目发生面积
pro_api.addPcproUpdateCollectData = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/pcpro/updateCollectData',   
	data: data    
})

pro_api.addPcproUpdateCollectData_new = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/pcpro/updateCollectData-new',   
	data: data    
})

// 添加公共监测作业项目发生面积
pro_api.addCommonProUpdateCollectData = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/commonpro/updateCollectData',   
	data: data    
})

// 添加监测作业项目调查面积
pro_api.addPcproCountDcArea = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/pcpro/count-dc-area',   
	data: data    
})

// 添加监测作业项目调查面积
pro_api.addPcproCountDcArea_new = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/pcpro/count-dc-area-new',   
	data: data    
})
 

// 添加公共监测作业项目监测面积
pro_api.addCommonProDcArea = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/commonpro/count-dc-area',   
	data: data    
})

pro_api.addCommonProDcArea_new = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/commonpro/count-dc-area-new',   
	data: data    
})


//添加用户轨迹
pro_api.addUserProLocus = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/locus/addUserProLocus',   
	data: data    
}) 

// 添加公共监测点到mongodb
pro_api.addCommonProLocus = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/locus/addusercommonlocus',   
	data: data    
})


// 监测作业群列表
pro_api.getCommonPros = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/pros',   
	data: data   
})

// 创建群作业
pro_api.addCommonTask = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/addtask',   
	data: data   
})

// 个人作业监测数据
pro_api.groupPcDatalist = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/pcdatalist',   
	data: data   
})

// 获取监测普查数据列表
pro_api.pcDataList = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pcpro/pcdatalist',   
	data: data   
}) 


// 获取调查数据详情
pro_api.getPcDataDetail = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pcpro/pcdata',   
	data: data   
}) 

// 个人作业监测数据详情
pro_api.groupPcDataDetail = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/pcdata',   
	data: data   
})

// 验收监测数据详情
pro_api.updatePcDataDetail = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pcpro/update-datas',   
	data: data   
}) 

// 个人作业监测数据删除
pro_api.deletePcdata = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/common/deletepcdata',   
	data: data   
})

// 监测作业数据删除
pro_api.pcproDeleteData = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pcpro/deletedata',   
	data: data   
})



// 团队监测数据详情
pro_api.getPcTeamData = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pcpro/worker',   
	data: data   
})

// 团队监测数据详情
pro_api.getPcWorkers = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pcpro/workers',   
	data: data   
})

// 防控数据详情
pro_api.getFkinfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkpro/fkinfo',   
	data: data   
})

// 防控成员
pro_api.getFkworker = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkpro/worker',   
	data: data   
})

// 防控数据列表
pro_api.getFkdatalist = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkpro/fkdatalist',   
	data: data   
})

// 获取防控数据列表
pro_api.fkDataList = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkpro/fkdatalist',   
	data: data   
}) 

// 防控数据详情
pro_api.getFkdataInfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkpro/fkdata',   
	data: data   
})

// 验收监测数据详情
pro_api.updatePcDataDetail = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/pcpro/update-datas',   
	data: data   
})

// 防控数据删除
pro_api.fkproDelete = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/fkpro/deletedata',   
	data: data   
})

// 获取监理数据列表
pro_api.jlDataList = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/pcdatalist',   
	data: data   
}) 

// 监理数据详情
pro_api.jlproInfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/jlinfo',   
	data: data   
})

// 监理团队普查数据详情
pro_api.getjlproDetail = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/pcdata',   
	data: data   
})

// 监理作业详情
pro_api.jlproWorker = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/worker',   
	data: data   
})

// 监理评价列表
pro_api.jlprodatalist = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/datalist',   
	data: data   
})

// 监理评价详情
pro_api.jlprodatainfo = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/datainfo',   
	data: data   
})

// 删除监理评价详情
pro_api.jlprodeletedata = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/deletedata',   
	data: data   
})

// 上传轨迹信息
pro_api.jlproLocus = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/locus',   
	data: data   
})

// 更新城市编码
pro_api.jlproAdcode = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/jlpro/adcode',   
	data: data   
})

// 添加公共监测点到mongodb
pro_api.addJlupdateCollectData = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/jlpro/updateCollectData',   
	data: data    
})

pro_api.addJlupdateCollectData_new = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/jlpro/updateCollectData-new',   
	data: data    
})

// 更新调查面积
pro_api.addJlDcArea = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/jlpro/count-dc-area',   
	data: data    
})

pro_api.addJlDcArea_new = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/jlpro/count-dc-area-new',   
	data: data    
})

// 添加用户监测点
pro_api.addUserJlProLocus = data => request.globalRequest({
	methods: 'POST',
	type:2,
	url: http_request_url_java+'/locus/addUserJlProLocus',   
	data: data    
})

// 添加用户监测数据
pro_api.addJlPropcdata = data => request.globalRequest({
	methods: 'POST', 
	url: HTTP_REQUEST_URL+'/jlpro/addpcdata',   
	data: data    
})


// 添加成员
pro_api.getMemberList = data => request.globalRequest({
	methods: 'POST', 
	url: HTTP_REQUEST_URL+'/user/get-users',   
	data: data    
})

// 添加项目成员
pro_api.addMemberList = data => request.globalRequest({
	methods: 'POST', 
	url: HTTP_REQUEST_URL+'/user/add-project-user',   
	data: data    
})

// 添加我的成员
pro_api.addMyMember = data => request.globalRequest({
	methods: 'POST', 
	url: HTTP_REQUEST_URL+'/user/adduser',   
	data: data    
})

// 防控数据验收
pro_api.fkProUpdate = data => request.globalRequest({
	methods: 'POST', 
	url: HTTP_REQUEST_URL+'/fkpro/update-datas',   
	data: data    
})

// 抽样坐标点
pro_api.saveCyArea = data => request.globalRequest({
	methods: 'POST', 
	url: HTTP_REQUEST_URL+'/pcpro/save-cc-area',   
	data: data    
})

// 抽样坐标点
pro_api.getCyArea = data => request.globalRequest({
	methods: 'POST', 
	url: HTTP_REQUEST_URL+'/pcpro/get-new-area',   
	data: data    
}) 

// 全民防控扫码获取结果
pro_api.qmfkScanResult = data => request.globalRequest({
	methods: 'GET', 
	url: HTTP_REQUEST_URL+'/fang/report',   
	data: data    
})

// 全民防控列表
pro_api.qmfkProjectList = data => request.globalRequest({
	methods: 'GET', 
	url: HTTP_REQUEST_URL+'/fang/project-list',   
	data: data    
}) 

// 蚁巢识别
pro_api.userSbYc = data => request.globalRequest({
	methods: 'POST', 
	url: 'https://shibie.honghuoyi.com/user/user-sb.do',   
	data: data    
}) 

// 删除识别图片
pro_api.delShibieImage = data => request.globalRequest({
	methods: 'POST',
	url: 'https://shibie.honghuoyi.com/user/del-image.do',   
	data: data   
})



 
export default pro_api






